package com.ydzh.kfqgwvisitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ydzh.kfqgwvisitor.entity.BeVisitor;
import com.ydzh.kfqgwvisitor.vo.BeVisitorVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 被访人信息表  Mapper 接口
 * </p>
 *
 * @author zcj
 * @since 2021-09-01
 */
public interface BeVisitorMapper extends BaseMapper<BeVisitor> {

    List<BeVisitorVO> listByDeptId(@Param("departmentId") Long departmentId);

    List<BeVisitorVO> findByUnitId(@Param("unitId") Long unitId, @Param("departmentId") Long departmentId);

}
